package project.menu.ordermenu.markerorder;

import project.controllers.Controller;
import project.menu.IMenu;
import project.menu.IMenuItem;
import project.work.Navigator;
import controllers.IAutoservice;

public class OrderMadedStatus implements IMenuItem {

	private String name = "Mark order maded";
	private final Integer id = 3;
	private static IMenu submenu;
	private Controller con;
	private Navigator n;
	
	public OrderMadedStatus(){
		con=Controller.getInstance();
		n=Navigator.getInstance();
	}
	
	public Integer getId() {
		return id;
	}
	

	
	public String getNameItem() {
		return name;
	}

	
	public static void setMenu(IMenu menu) {
		submenu = menu;
	}

	public void action(IAutoservice aut) {
		aut.markOrderMade(con.getNumberOrder());

		n.drawMenu(submenu);
	}
}
